package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserPrivateBeanMapper;
import com.billing.model.entity.TUserPrivate;
import com.billing.model.entity.TUserPrivateBuffer;
import com.billing.service.UserPrivateService;
@Service
public class UserPrivateServiceImpl implements UserPrivateService {
	@Resource
	private UserPrivateBeanMapper userPrivateBeanMapper; 
	public int insertTUserPrivate(TUserPrivate userPrivate) {
		return userPrivateBeanMapper.insertTUserPrivate(userPrivate);
	}
	public TUserPrivate selectUserPrivateByUid(String userid) {
		return userPrivateBeanMapper.selectUserPrivateByUid(userid);
	}
	public int updateUserPrivate(TUserPrivate userPrivate) {
		return userPrivateBeanMapper.updateUserPrivate(userPrivate);
	}
	public TUserPrivate selectUserPrivateById(String id) {
		return userPrivateBeanMapper.selectUserPrivateById(id);
	}
	@Override
	public int updateUserPrivateByUid(TUserPrivate userPrivate) {
		return userPrivateBeanMapper.updateUserPrivateByUid(userPrivate);
	}
	@Override
	public int insertByBuffer(TUserPrivateBuffer privateBuffer) {
		return userPrivateBeanMapper.insertByBuffer(privateBuffer);
	}
	@Override
	public int updateByBuffer(TUserPrivateBuffer privateBuffer) {
		return userPrivateBeanMapper.updateByBuffer(privateBuffer);
	}

}
